<template lang="html">
    <Panel title="新手特权" :class="$style.panel">
        <section :class="$style.content">
            <div :class="$style.item">
                <h4>下载APP<span :class="$style.red">送888元礼包</span></h4>
                <p :class="$style.gray">新手专享</p>
                <img :class="$style.imgXinshou"
                    src="//img12.360buyimg.com/jrpmobile/jfs/t10384/155/1759179594/9776/185bd062/59e5f0ebNec4cf494.png?width=100&height=100"
                    alt="">
            </div>
            <div :class="$style.item">
                <ul>
                    <li>
                        <img src="//img12.360buyimg.com/jrpmobile/jfs/t4639/162/1782623297/60754/98ea03b4/58e60952N7fdb2b85.png?width=200&height=200"
                            alt="">
                        <h4 :class="$style.red">领128元新手礼包</h4>
                        <p :class="$style.gray">立即开通</p>
                    </li>
                    <li>
                        <img src="//img12.360buyimg.com/jrpmobile/jfs/t4804/179/657713323/5908/66dce262/58e6095fNd3dc3f39.png?width=100&height=100"
                            alt="">
                        <h4>打白条 <span :class="$style.red">享免息</span></h4>
                        <p :class="$style.gray">立即开通享好礼</p>
                    </li>
                </ul>
            </div>
        </section>
    </Panel>
</template>
<script>
    import Panel from "../core/panel.vue"
    export default {
        components: {
            Panel
        }
    }
</script>
<style lang="scss" module>
    @import "../../css/element.scss";

    .panel {
        @include panel;
    }

    .panel>h4 {
        /*新手特权样式*/
        border-bottom: 1px solid #ddd;
    }

    .panel>.content {
        @include list(row);
    }

    .content .item {
        width: 50%;
        box-sizing: border-box;
    }

    .content>.item:first-child {
        padding: 30px 20px;
        text-align: center;
        border-right: 1px solid #ddd;
    }

    .content>.item h4 {
        /* 控制所有的h4 */
        font-size: 26px;
        line-height: 40px;
        font-weight: 700;
        color: black;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
    }

    h4 span.red {
        color: red;
        font-weight: 700;
    }

    .item p.gray {
        /* 控制了所有的p元素 */
        color: #999;
        font-size: 24px;
        margin-top: 6px;
    }

    .item img.imgXinshou {
        width: 132px;
        height: 132px;
        margin: 20px auto;
    }

    .item ul {
        width: 100%;
    }

    .item li {
        height: 159px;
        width: 100%;
        padding: 32px 28px;
        box-sizing: border-box;

    }

    .item li:first-child {
        border-bottom: 1px solid #ddd;
    }

    .item li img {
        width: 80px;
        height: 80px;
        float: right;
    }

    .item h4.red {
        color: red;
    }
</style>